#ifndef __PATH__
#define __PATH__
#include "ds.h"

typedef struct pathStack_s{
    char pathArr[32][64];
    int top;
}pathStack_t;


static int stackPush(pathStack_t* ppathStack, char* data);

static int stackPop(pathStack_t* ppathStack);

static int getList(const char* realPath, char* result);

static int sendResult(char* data,int netfd);

int pathStackInit(pathStack_t* ppathStack);

int getCwd(const pathStack_t* ppathStack, char* path);

int changeDir(cmd_t* pcmd, pathStack_t* ppathStack, int metfd,char* pathBase);

int printWokringDir(const pathStack_t* ppathStack, int netfd);

int listFile(const pathStack_t* ppathStack,int netfd,char* pathBase);

#endif
